package com.example.payment.service;

import com.alipay.api.AlipayApiException;
import com.example.model.check_in.CheckIn;
import com.example.model.payment.Payment;
import com.example.model.payment.PaymentResultVo;

import java.math.BigDecimal;
import java.util.List;

public interface PaymentService {

//    PaymentResultVo makePayment(CheckIn checkIn);

    PaymentResultVo makePayment(Payment payment, BigDecimal amount, BigDecimal pay);

    int insert(Payment payment);

    void analysis(String notifyData);

    Boolean research(Long paymentId);

    Payment get(Long paymentId);

    void refund(Long paymentId, BigDecimal amount) throws AlipayApiException;

    int update(String tradeNo);

    List<Payment> list(Payment payment);
}
